<template>
  <div class="statistic-banner">
    <div class="statistic-banner__box">
      <div class="statistic-banner__item" v-for="item of list">
        <div class="statistic-banner__label">{{ item.label }}</div>
        <div class="statistic-banner__value">{{ item.value }}</div>
      </div>
    </div>
  </div>
</template>

<script>
import {defineComponent} from 'vue';

export default defineComponent({
  name: 'AppStatisticBanner',
  props: {
    list: {
      type: Array,
      required: true,
    },
  }
});
</script>

<style scoped>
.statistic-banner {
  @apply bg-white w-full p-4 m-6;

  .statistic-banner__box {
    @apply flex justify-around;

    .statistic-banner__item {
      @apply my-4 flex flex-col items-center;

      .statistic-banner__label {
        @apply text-base text-[#515A6E];
      }

      .statistic-banner__value {
        @apply text-2xl text-[#515A6E];
      }
    }
  }
}
</style>
